<template>
	<view class="banner">
		<u-swiper :list="list" height="400rpx" @click="handleClick"></u-swiper>
	</view>
</template>

<script>
	export default {
		props: {
			noticeList: {
				type: Array,
				default: [],
			},
			showLoading: {
				type: Boolean,
				default: false,
			}
		},
		data() {
			return {
				// list: [
				// 	'http://boc.amsure.cn:8070/images/uploadPath/b42af57dfb324d6bbe299fa8e187be09.png',
				// ],
			}
		},
		computed: {
			list() {
				return this.noticeList.map((v) => v.cover);
			},
		},
		methods: {
			handleClick(index) {
				const info = this.noticeList[index];
				uni.navigateTo({
					url: `/pages/home/banner-detail?id=${info.id}`,
				})
			}
		}
	}
</script>

<style>

</style>